package com.blindBox.front.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blindBox.front.dao_pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper extends BaseMapper<User> {
 //将对应用户当日投掷盲盒数量加一
    boolean add_user_lauch_num(Integer u_id);
 //将对应用户当日拿取纸条数量加一
     boolean add_user_take_num(Integer u_id);
  //将所有用户的投掷次数和拿取次数清零
  void clear_all_user_status();
  //增加用户当日可抽取纸条的上限
    void up_user_take_num(@Param("u_id") Integer u_id, @Param("u_add_num")Integer num);
}
